﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.IoTManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.IoTManagement.CollectTaskVMs
{
    public partial class CollectTaskBatchVM : BaseBatchVM<CollectTask, CollectTask_BatchEdit>
    {
        public CollectTaskBatchVM()
        {
            ListVM = new CollectTaskListVM();
            LinkedVM = new CollectTask_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class CollectTask_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._CollectTask._TaskName")]
        public string TaskName { get; set; }
        [Display(Name = "_Model._CollectTask._TargetDeviceType")]
        public MeterDeviceTypeEnum? TargetDeviceType { get; set; }
        [Display(Name = "_Model._CollectTask._Device")]
        public long? DeviceId { get; set; }
        [Display(Name = "_Model._CollectTask._IntervalMinutes")]
        public int? IntervalMinutes { get; set; }
        [Display(Name = "_Model._CollectTask._StartTime")]
        public DateTime? StartTime { get; set; }
        [Display(Name = "_Model._CollectTask._EndTime")]
        public DateTime? EndTime { get; set; }
        [Display(Name = "_Model._CollectTask._Status")]
        public TaskStatusEnum? Status { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}